<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>评论 -- Powered by CentIMS {$core_version}</title>
		<link href="{'bootstrap/css/bootstrap.css'|shared}" rel="stylesheet"/>
		<link href="{'bootstrap/css/bootstrap-responsive.css'|shared}" rel="stylesheet"/>
		<link href="{'common.css'|shared}" rel="stylesheet"/>		
		<script type="text/javascript" src="{'quicktags.js'|shared}"></script>		
	</head>
	<body>
		<div class="workspace">
			<div id="ask_content">
				<p><strong>{$item.asker_name}@{$item.ask_ip}</strong><span>于{$item.ask_time|date_format:'Y-m-d H:i'}</span>.</p>
				<p>{$item.ask_content|nl2br}</p>
			</div>
			<form class="form-horizontal" id="ask-form" method="POST" action="./?Ctlr=SaveReplay">
				<input type="hidden" name="ask_id" id="ask_id" value="{$ask_id}"/>
		       	<div class="quicktags">
					<script type="text/javascript">edToolbar('anwer_content');</script>
					<textarea rows="8" class="quicktags-editor" name="anwer_content" id="anwer_content" style="height:200px;">{$item.anw_content}</textarea>
				</div>				   
		    </form>
	    </div>	
		<script type="text/javascript" src="{'jquery-1.7.1.js'|jquery}"></script>
		<script type="text/javascript" src="{'jquery.form.js'|jquery}"></script>
		<script type="text/javascript" src="{'bootstrap/bootstrap.js'|shared}"></script>		
		<script type="text/javascript" src="{'common.js'|shared}"></script>
		<script type="text/javascript">
			function saveReply(win){
				showWaitMask('正在保存....');
				$('#ask-form').ajaxSubmit({
						success:function(data){
							if(data.success){
								win.location.reload();
							}else{
								alert(data.msg);
							}
							hideWaitMask();
						}
				});
			}
		</script>
	</body>
</html>
